package com.ap.core.email.api.impl;

import com.ap.core.email.api.EmailPayloadInfo;

/**
 * Implementation class for{@link EmailPayloadInfo}
 */
public class DefaultEmailPayloadInfo implements EmailPayloadInfo {

    private String[] bccAddresses;
    private String genericBodyContent;
    private String[] recipientAddresses;
    private String[] ccAddresses;
    private boolean highPriority;
    private String title;
    private String emailFromAddress;

    public DefaultEmailPayloadInfo(String[] recipientAddresses, String emailFromAddress, String[] ccAddresses, String[] bccAddresses) {
        this.bccAddresses = bccAddresses;
        this.ccAddresses = ccAddresses;
        this.emailFromAddress = emailFromAddress;
        this.recipientAddresses = recipientAddresses;
    }

    public void setGenericBodyContent(String genericBodyContent) {
        this.genericBodyContent = genericBodyContent;
    }

    public void setHighPriority(boolean highPriority) {
        this.highPriority = highPriority;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public void setEmailFromAddress(String emailFromAddress) {
        this.emailFromAddress=emailFromAddress;
    }

    @Override
    public String[] getBccAddresses() {
        return bccAddresses;
    }

    @Override
    public String getGenericBodyContent() {
        return genericBodyContent;
    }

    @Override
    public String[] getRecipientAddresses() {
        return recipientAddresses;
    }

    @Override
    public String[] getCcAddresses() {
        return ccAddresses;
    }

    @Override
    public boolean getHighPriority() {
        return highPriority;
    }

    @Override
    public String getTitle() {
        return title;
    }

    @Override
    public String getEmailFromAddress() {
        return emailFromAddress;
    }
}
